local protobuf = require "protobuf"
local register = require "register"
protobuf.register_file("user.pb")
protobuf.register_file("msg.pb")

local testvalue = 
{
    userID = 909,
    userName = "aaaa",
}
local t = protobuf.encode("BaseMsg",{S2C_TestUser1=testvalue})
pring("len===",#t)
local data = protobuf.decode("BaseMsg")
local msgName,msgValue = next(data)